<?php

namespace app\api\validate;

use think\Validate;

class VillageBusinessApply extends Validate
{
    protected $rule = [
        //"type"         => "require",
        "title"        => "require",
        "contacts"     => "require",
        "mobile"       => "require|mobile",
        "customer_tel" => "require",
        "bank_name"    => "require",
        "bank_open"    => "require",
        "bank_account" => "require",
        "bank_number"  => "require",
        "logo"         => "require",
        "license"      => "require",
        "coordinate"   => "require",
        "agreement"    => "require",
    ];

    protected $message = [
        //'type.require'         => '请选择店铺类型',
        'title.require'        => '请填写店铺名称',
        'contacts.require'     => '请填写联系人',
        'mobile.require'       => '请填写手机号',
        'mobile.mobile'        => '手机号格式错误',
        'customer_tel.require' => '请填写客服电话',
        'bank_name.require'    => '请选择银行',
        'bank_open.require'    => '请填写开户行',
        'bank_account.require' => '请填写银行户名',
        'bank_number.require'  => '请填写银行卡号',
        'logo.require'         => '请上传店铺Logo',
        'license.require'      => '请上传营业执照',
        'coordinate.require'   => '请填写门店经纬度',
        'agreement.require'    => '请您同意并接受《商家入驻协议》',
    ];

}